package com.xtc.netty.protocol.http.xml;

import com.xtc.netty.protocol.http.model.Address;
import com.xtc.netty.protocol.http.model.Customer;
import com.xtc.netty.protocol.http.model.Order;

/**
 * @author Administrator
 */
public class OrderFactory {
    public static Order create(long orderId) {
        Address address = new Address();
        address.setCity("深圳");
        address.setCountry("西丽");
        address.setPostCode("518000");
        address.setState("0");
        address.setStreet1("西丽南路");
        address.setStreet2("文光村");

        Order order = new Order();
        order.setOrderNumber(orderId);
        order.setTotal(999.36F);

        Customer customer = new Customer();
        customer.setFirstName("苍");
        customer.setLastName("先生");

        order.setCustomer(customer);
        order.setShipTo(address);
        order.setBillTo(address);
        return order;
    }
}
